Updating State From Properties With React Hooks
And why you shouldn’t change state from useEffect dependencies
Published in
5 min readDec 14, 2020
How many times have we wanted to update a component’s internal state with data from its properties? There are a variety of ways to do it, but some come with pitfalls.